package com.qingmeng.outsourcing.portal.enums;

import com.qingmeng.outsourcing.common.api.IErrorCode;

public enum RegisterResult implements IErrorCode {
    REG_SUCCESS(0,"注册成功"),
    AUTH_CODE_ERROR(1,"验证码错误"),
    USERNAME_EXIST(2,"该用户名已经存在"),
    REG_DUPLICATED(3,"该号码已经注册过该身份"),  //duplicated，英语单词，主要用作动词，作动词时译为“复制；复印；（使）成倍增加；（无必要地）重复（某事）
    REG_FAILDE(4,"用户注册失败");


    private final long code;
    private final String message;

    RegisterResult(long code, String message) {
        this.code = code;
        this.message = message;
    }


    @Override
    public long getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
